extends Node2D

@onready var spring_area_2d: Area2D = $SpringArea2d
@onready var animation_player: AnimationPlayer = $AnimationPlayer

func _ready() -> void:
	spring_area_2d.area_entered.connect(on_area_entered)

func on_area_entered(area_2d):
	animation_player.play("spring")
